require('babel-polyfill');
require('babel-core/register')({
  presets:['es2015','stage-0'],
  plugins:["transform-decorators-legacy"]
});
var http = require('http');
var ReactDOMServer = require('react-dom/server');
var Abc = require('./src/Abc');

http.createServer(function(req,res) {
	res.setHeader('content-type','text/html');
	var html=`
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="theme-color" content="#000000">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="keywords" content="SOFA_在线文档_了解学习更多产品使用帮助！">
    <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
    <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
    <title>SOFA_在线文档_了解学习更多产品使用帮助</title>
  </head>
  <body>
    <div id="root">${ReactDOMServer.renderToString('<h1>12<h1/>')}</div>
  </body>
</html>
	`;
	res.end(html);
}).listen(2333);